/* 自定义样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* 文件上传区域样式 */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upload-area.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

/* 资源卡片样式 */
.resource-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.resource-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 课表样式 */
#scheduleTable {
    font-size: 14px;
}

#scheduleTable th,
#scheduleTable td {
    text-align: center;
    vertical-align: middle;
    padding: 8px;
}

#scheduleTable td[contenteditable="true"] {
    background-color: #f8f9fa;
    cursor: text;
}

#scheduleTable td[contenteditable="true"]:hover {
    background-color: #e9ecef;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格样式优化 */
.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

/* 模态框样式优化 */
.modal-lg {
    max-width: 90%;
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }
}

/* 导航栏样式优化 */
.navbar-brand {
    font-weight: bold;
}

/* 卡片阴影效果 */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
